package ch.unisi.inf.pfii.teamwhite.risk.core.player;

import junit.framework.TestCase;
import ch.unisi.inf.pfii.teamwhite.risk.core.Planet;

public class PlayerTest extends TestCase {

	public void testMoveShips() 
	{
		Player player1 = new Human("User");
		Planet originPlanet = new Planet("User", new Human("User") ,100);
		Planet destinationPlanet = new Planet("User", new Human("User") ,100);
		for (int i = 0; i < 3; i++) 
		{
			originPlanet.createShip();
			}
		for (int i = 0; i < 5; i++) 
		{
			destinationPlanet.createShip();
			}
		player1.moveShips(originPlanet, destinationPlanet, 2);
		assertEquals(1, originPlanet.getShips().size());
		assertEquals(7, destinationPlanet.getShips().size());
	}		
	
}
